using System;

namespace Needle.Framework
{
    /// <summary>
    /// provides dispose notification
    /// </summary>
    public interface INotifyDisposed : IDisposable
    {
        /// <summary>
        /// Raised when the object has been disposed;
        /// </summary>
        event EventHandler Disposed;

        /// <summary>
        /// True if the object has been disposed, false otherwise.
        /// </summary>
        bool IsDisposed { get; }

    }
}
